package com.ctshk.rpc.user.entity.es;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  商品订单
 * </p>
 *
 * @author 李新科
 * @date 2021/5/27 21:17
 */
@Data
@ApiModel(value="商品订单ES缓存实体")
@Accessors(chain = true)
public class CommodityOrderEs implements Serializable {

    @ApiModelProperty(value = "商品详情数组")
    @Field(type = FieldType.Nested)
    private List<CommodityOrderDetailEs> commodityOrderDetailList;
}
